package com.ruoyi.park.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 在场车辆对象 admittance_record
 * 
 * @author 博雅
 * @date 2023-12-15
 */
public class AdmittanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进场ID */
    @Excel(name = "进场ID")
    private Long admittanceId;

    /** 车辆状态 */
    @Excel(name = "车辆状态")
    private String carStatus;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNo;

    /** 进场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "进场时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date admittanceTime;

    /** 离场时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "离场时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveTime;

    public void setAdmittanceId(Long admittanceId) 
    {
        this.admittanceId = admittanceId;
    }

    public Long getAdmittanceId() 
    {
        return admittanceId;
    }
    public void setCarStatus(String carStatus) 
    {
        this.carStatus = carStatus;
    }

    public String getCarStatus() 
    {
        return carStatus;
    }
    public void setCarNo(String carNo) 
    {
        this.carNo = carNo;
    }

    public String getCarNo() 
    {
        return carNo;
    }
    public void setAdmittanceTime(Date admittanceTime) 
    {
        this.admittanceTime = admittanceTime;
    }

    public Date getAdmittanceTime() 
    {
        return admittanceTime;
    }
    public void setLeaveTime(Date leaveTime) 
    {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() 
    {
        return leaveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("admittanceId", getAdmittanceId())
            .append("carStatus", getCarStatus())
            .append("carNo", getCarNo())
            .append("admittanceTime", getAdmittanceTime())
            .append("leaveTime", getLeaveTime())
            .toString();
    }
}
